package org.example.server.controller;

import org.example.common.Calc;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p></p>
 *
 * @author jiuhua.xu
 * @version 1.0
 * @since JDK 1.8
 */
@RestController
@RequestMapping("test")
public class TestController {

    @GetMapping("one")
    public ResponseEntity one() {
        Calc calc = new Calc();
        return ResponseEntity.ok("one -> " + calc.add(2, 3));
    }

}
